/*
 * @file	sensor_wrapper.h
 * @autohr  Queclink henry.cai
 * @date	2024年7月23日
 * @brief
 *
 * Coypright (C) 2017 Queclink Co., Ltd. All Rights Reserved
 *
 * @attention
 *
 * @usage
 *
 * @record
 *
 */
#ifndef __SENSOR_WRAPPER_H__
#define __SENSOR_WRAPPER_H__

#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>

#ifdef __cplusplus
extern "C" {
#endif

/* log level definition */
#define LOG_FATAL       "0" /* 关键的,重大的,致命的 */
#define LOG_EMERG       "0" /* system is unusable */
#define LOG_ALERT       "1" /* action must be taken immediately */
#define LOG_CRIT        "2" /* critical conditions */
#define LOG_ERR         "3" /* error conditions */
#define LOG_WARNING     "4" /* warning conditions */
#define LOG_NOTICE      "5" /* normal but significant condition */
#define LOG_INFO        "6" /* informational */
#define LOG_DEBUG       "7" /* debug-level messages */

#define LOG_DEFAULT     "d" /* the default kernel loglevel */

#define LOG_ALL         LOG_DEBUG
#define LOG_OFF         "n" /* 关闭LOG打印功能 */


/*
 * @brief  Sensor 日志通道打印接口
 * @note   为了简化日志管理, 用户可以直接使用该接口打印 Sensor 相关信息.
 */

void sensor_delay(uint32_t ms);
void *sensor_malloc(uint32_t size);
void sensor_free(void *mem);
float sensor_motion_accel_threshold_get(void);
float sensor_wakeup_accel_threshold_get(void);

#ifdef __cplusplus
}
#endif


#endif